﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;

namespace mpsalary
{
    public partial class Signup : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            {
                if (!Page.IsPostBack)
                {
                    SetCaptchaText();
                }
                if (Session["Name"] != null)
                    tbxFirstName.Text = Session["Name"].ToString();
            }

           
            
        }
        private void SetCaptchaText()
        {
            Random oRandom = new Random();
            int iNumber = oRandom.Next(10000, 99999);
            Session["Captcha"] = iNumber.ToString();
        }
        //protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
        //{
        //    Session["Name"] = tbxFirstName.Text;
        //    Response.Redirect("mainPage.aspx");
        //}

        //protected void imagebtnHome_Click(object sender, ImageClickEventArgs e)
        //{
        //    Response.Redirect("homePage.aspx");

        //}

        //protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        //{
        //    Response.Redirect("mainPage.aspx");

        //}

        //protected void ImageButton2_Click1(object sender, ImageClickEventArgs e)
        //{
            
        //}

    }
}